package com.situ.ssm.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.situ.ssm.common.ServerResponse;
import com.situ.ssm.entity.Classes;
import com.situ.ssm.service.IClassesService;
import com.situ.ssm.util.JSONUtil;

@Controller
@RequestMapping("/classes")
public class ClassesController {

	@Autowired
	private IClassesService classesService;
	
	@RequestMapping("/selectClass")
	@ResponseBody
	public List<Classes> selectClass(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		return classesService.selectClass();
	}
}
